package com.kgd.news.route;

import com.jfinal.config.Routes;
import com.kgd.news.controller.admin.*;

/**
 * @Email: huangsanm@foxmail.com
 * @Date: 2017/6/12
 * @Time: 下午3:54
 */
public class AdminRoute extends Routes {

    @Override
    public void config() {
        //集成beetl之后baseViewPath不会生效
        setBaseViewPath("/admin");
        /*addInterceptor(new AdminAuthInterceptor());*/
        add("/", AdminController.class);
        add("/user", UserController.class);
        add("/menu", MenuController.class);
        add("/dict", DictController.class);
        add("/banner", BannerController.class);
        add("/category", CategoryController.class);
        add("/news", NewsController.class);
        add("/question", QuestionController.class);
        add("/results", ResultsController.class);
        add("/score", ScoreController.class);
        add("/option", OptionsController.class);
        add("/image", ImageController.class);
        add("/media", MediaController.class);
        add("/video", VideoController.class);
        add("/comment", CommentController.class);
        add("/adv", AdvController.class);
        add("/settings", SettingsController.class);
        add("/message", MessageController.class);
        add("/smallapp", SmallAppController.class);
        add("/shop", ShopController.class);
        add("/dbtable", DbtableController.class);
        add("/copy", CopyController.class);
        add("/servicemessage", ServiceMessageController.class);
    }
}
